package com.egao.common.module.cooperative.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 产教融合banner
 * @author root
 */
@Data
public class CooperativeProjectBanner implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("公开状态 0显示 1不显示")
    private String state;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("图片地址")
    private String img;

    @ApiModelProperty("连接地址")
    private String url;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty("添加人")
    private Integer createBy;
    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
    private Date createTime;
    @ApiModelProperty("编辑时间")
    private Date updateTime;
    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;
}
